package com.example.hfSystem.entity.pojo;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;


@Getter
@Setter
@Data
@Accessors(chain = true)
@TableName("token")
@ApiModel(value = "Token对象", description = "token表")
public class Token implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty("表名")
    @TableField("tablename")
    private String tablename;

    @ApiModelProperty("角色")
    @TableField("role")
    private String role;

    @ApiModelProperty("密码")
    @TableField("token")
    private String token;

    @ApiModelProperty("新增时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("过期时间")
    @TableField("expirated_time")
    private Date expiratedTime;

}
